package com.rambo.sdh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.rambo.sdh.dao.inter.DepartmentDao;
import com.rambo.sdh.dao.pojo.Department;
import com.rambo.sdh.dao.pojo.Employee;
import com.rambo.sdh.service.inter.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService {
	
	
	@Autowired
	private DepartmentDao departmentDao;
	
	@Override
	public Department getDepartmentByid(Integer id) {
		
		return  departmentDao.getDepartmentByid(id);
	}

	@Override
	public Department getDePartmentByemployeeId(Integer id) {
		
		return departmentDao.getDePartmentByemployeeId(id);
	}

	@Override
	public List<Employee> getemployeeByDepartmentId(Integer id) {
		
		return departmentDao.getemployeeByDepartmentId(id);
	}

	
}
